package com.mumu.juc.test;

import lombok.Data;

/**
 * @author mumu
 * @version 1.0
 * @date 2023/12/7 16:52
 * @describe
 */
@Data
public class Car {

    private String brand = null;

    private int doors = 0;


    static String name = "a";

    static {
        System.out.println("我是静态代码块");
    }

    {
        System.out.println("我是实例代码块");
    }

    public Car() {
        System.out.println("我是构造方法");
    }

    public static void test() {
        System.out.println("test");
        test1();
    }

    public static String test1() {
        System.out.println("test1");
        test();
        return "test";
    }

//    public static String  a = test1();

    public static void main(String[] args) {
//        Car car = new Car();
    }
}
